// Definition of a toggle-button view.
// Copyright 2006 (C) Ralph Thomas

#ifndef MISSION_VIEW_TOGGLE_BUTTON_H
#define MISSION_VIEW_TOGGLE_BUTTON_H

#include <factory.hpp>

namespace view {
	//
	/// The toggle button widget works like a radio button, but looks
	/// like a regular button. The parameters must include "bind" and
	/// "on_value" parameters, just like a radio button.
	///
	/// \param	parameters	a dictionary of parameters for the
	///				new toggle widget.
	/// \param	parent		the parent of the toggle button.
	/// \param	token		the factory token containing
	///				everything else for creating the
	///				widget.
	/// \return	a widget_node_t containing the new toggle button
	///		widget.
	//
	adobe::widget_node_t toggle_button_factory(
		const adobe::dictionary_t&	parameters,
		const adobe::widget_node_t&	parent,
		const adobe::factory_token_t&	token );
};

#endif

